package com.xiyan.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "博客对象", description = "")
@Accessors(chain = true)
public class Blog extends BaseEntity {

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "博客内容")
    private String content;

    @ApiModelProperty(value = "点赞数")
    private Long praiseNum;

    @ApiModelProperty(value = "阅读量")
    private Long readCount;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "评论数")
    private Long commentNum;

    @TableField(exist = false)
    private List<String> tags;

}
